﻿



using System; 
using System.Collections;
using System.Collections.Generic ;
using System.Runtime.Serialization;

namespace ufida.u9.ait.openapi
{
	/// <summary>
	/// 生产订单来源单据 Copy DTO :REST自定义的数据传输类型 
	/// 
	/// </summary>
	[DataContract(Namespace = "ufida.u9.ait.openapi")]
	[Serializable]
	public partial class CopyOfMOSourceDocData  
	{
		/// <summary>
		/// Default Constructor
		/// </summary>
		public CopyOfMOSourceDocData()
		{
			initData();
		}
		private void initData()
		{
					MOSrcDocType= -1; 
				
		
		
		
		
		
		
		
					SrcDocID= -1; 
							SrcDocLineID= -1; 
				

			//调用默认值初始化服务进行配置方式初始化
			UFSoft.UBF.Service.DTOService.InitConfigDefault(this);
		}
		[System.Runtime.Serialization.OnDeserializing]
		internal void OnDeserializing(System.Runtime.Serialization.StreamingContext context)
		{
			 initData();
		}
		#region Do SerializeKey -ForDTODataType
		//只为处理集合型EntityKey。原因集合型EntityKey由于使用臫的集合对象，无法实现数据共享.-UBF专用.
		public void DoSerializeKeyList(IDictionary dict)
		{
			if (dict == null ) dict = new Hashtable() ;
			if (dict[this] != null)
				return ;
			dict[this] = this;
	        	        	        			if (this.SrcDoc != null) 
			{
				this.SrcDoc.DoSerializeKeyList(dict);
			}
	        	        			if (this.SrcDocLine != null) 
			{
				this.SrcDocLine.DoSerializeKeyList(dict);
			}
	        			if (this.SrcDocSubline != null) 
			{
				this.SrcDocSubline.DoSerializeKeyList(dict);
			}
	        	        	        	        	        	        
		}
		#endregion 
		/// <summary>
		/// Constructor Full Argument
		/// </summary>
		public CopyOfMOSourceDocData(  System.Int32 mOSrcDocType  , UFIDA.U9.Base.Organization.OrganizationData srcDocOrg  , ufida.u9.ait.openapi.CopyOfBizEntityKeyData srcDoc  , System.String srcDocVer  , ufida.u9.ait.openapi.CopyOfBizEntityKeyData srcDocLine  , ufida.u9.ait.openapi.CopyOfBizEntityKeyData srcDocSubline  , System.String srcDocNo  , System.String srcDocLineNo  , System.String srcDocSublineNo  , System.Int64 srcDocID  , System.Int64 srcDocLineID  , System.String srcDocType  )
		{
			initData();
			this.MOSrcDocType = mOSrcDocType;
			this.SrcDocOrg = srcDocOrg;
			this.SrcDoc = srcDoc;
			this.SrcDocVer = srcDocVer;
			this.SrcDocLine = srcDocLine;
			this.SrcDocSubline = srcDocSubline;
			this.SrcDocNo = srcDocNo;
			this.SrcDocLineNo = srcDocLineNo;
			this.SrcDocSublineNo = srcDocSublineNo;
			this.SrcDocID = srcDocID;
			this.SrcDocLineID = srcDocLineID;
			this.SrcDocType = srcDocType;
		}
		#region System Fields 
		//--系统字段,目前没有.EntityData上有相应的字段,用于保存相关的实体状态信息,DTO上没有状态信息.	
		#endregion
		
		#region DTO Properties 
	
		

		/// <summary>
		/// 来源单据类别
		/// 生产订单来源单据 Copy.Misc.来源单据类别
		/// </summary>
		private System.Int32 m_mOSrcDocType ;
		[DataMember(IsRequired=false)]
		public System.Int32 MOSrcDocType
		{
			get	
			{	
				return m_mOSrcDocType ;
			}
			set	
			{	
				m_mOSrcDocType = value ;	
			}
		}
			
		

		/// <summary>
		/// 来源单据组织
		/// 生产订单来源单据 Copy.Misc.来源单据组织
		/// </summary>
		private UFIDA.U9.Base.Organization.OrganizationData m_srcDocOrg ;
		[DataMember(IsRequired=false)]
		public UFIDA.U9.Base.Organization.OrganizationData SrcDocOrg
		{
			get	
			{	
				return m_srcDocOrg ;
			}
			set	
			{	
				m_srcDocOrg = value ;	
			}
		}
			
		

		/// <summary>
		/// 来源单据
		/// 生产订单来源单据 Copy.Misc.来源单据
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfBizEntityKeyData m_srcDoc ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfBizEntityKeyData SrcDoc
		{
			get	
			{	
				return m_srcDoc ;
			}
			set	
			{	
				m_srcDoc = value ;	
			}
		}
			
		

		/// <summary>
		/// 版本号
		/// 生产订单来源单据 Copy.Misc.版本号
		/// </summary>
		private System.String m_srcDocVer ;
		[DataMember(IsRequired=false)]
		public System.String SrcDocVer
		{
			get	
			{	
				return m_srcDocVer ;
			}
			set	
			{	
				m_srcDocVer = value ;	
			}
		}
			
		

		/// <summary>
		/// 来源单据行
		/// 生产订单来源单据 Copy.Misc.来源单据行
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfBizEntityKeyData m_srcDocLine ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfBizEntityKeyData SrcDocLine
		{
			get	
			{	
				return m_srcDocLine ;
			}
			set	
			{	
				m_srcDocLine = value ;	
			}
		}
			
		

		/// <summary>
		/// 来源单据子行
		/// 生产订单来源单据 Copy.Misc.来源单据子行
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfBizEntityKeyData m_srcDocSubline ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfBizEntityKeyData SrcDocSubline
		{
			get	
			{	
				return m_srcDocSubline ;
			}
			set	
			{	
				m_srcDocSubline = value ;	
			}
		}
			
		

		/// <summary>
		/// 来源单据号
		/// 生产订单来源单据 Copy.Misc.来源单据号
		/// </summary>
		private System.String m_srcDocNo ;
		[DataMember(IsRequired=false)]
		public System.String SrcDocNo
		{
			get	
			{	
				return m_srcDocNo ;
			}
			set	
			{	
				m_srcDocNo = value ;	
			}
		}
			
		

		/// <summary>
		/// 来源单据行号
		/// 生产订单来源单据 Copy.Misc.来源单据行号
		/// </summary>
		private System.String m_srcDocLineNo ;
		[DataMember(IsRequired=false)]
		public System.String SrcDocLineNo
		{
			get	
			{	
				return m_srcDocLineNo ;
			}
			set	
			{	
				m_srcDocLineNo = value ;	
			}
		}
			
		

		/// <summary>
		/// 来源单据子行号
		/// 生产订单来源单据 Copy.Misc.来源单据子行号
		/// </summary>
		private System.String m_srcDocSublineNo ;
		[DataMember(IsRequired=false)]
		public System.String SrcDocSublineNo
		{
			get	
			{	
				return m_srcDocSublineNo ;
			}
			set	
			{	
				m_srcDocSublineNo = value ;	
			}
		}
			
		

		/// <summary>
		/// 来源单据key
		/// 生产订单来源单据 Copy.Misc.来源单据key
		/// </summary>
		private System.Int64 m_srcDocID ;
		[DataMember(IsRequired=false)]
		public System.Int64 SrcDocID
		{
			get	
			{	
				return m_srcDocID ;
			}
			set	
			{	
				m_srcDocID = value ;	
			}
		}
			
		

		/// <summary>
		/// 来源单据行key
		/// 生产订单来源单据 Copy.Misc.来源单据行key
		/// </summary>
		private System.Int64 m_srcDocLineID ;
		[DataMember(IsRequired=false)]
		public System.Int64 SrcDocLineID
		{
			get	
			{	
				return m_srcDocLineID ;
			}
			set	
			{	
				m_srcDocLineID = value ;	
			}
		}
			
		

		/// <summary>
		/// 来源单据类型
		/// 生产订单来源单据 Copy.Misc.来源单据类型
		/// </summary>
		private System.String m_srcDocType ;
		[DataMember(IsRequired=false)]
		public System.String SrcDocType
		{
			get	
			{	
				return m_srcDocType ;
			}
			set	
			{	
				m_srcDocType = value ;	
			}
		}
			
		#endregion	

		#region Multi_Fields
																								
		#endregion 
	} 	
}
